﻿using CsvHelper.Configuration.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Lottery.Model
{
    public class GiftInfo
    {
        private int level;

        public int Level
        {
            get { return level; }
            set { level = value; }
        }

        private String name;

        public String Name
        {
            get { return name; }
            set { name = value; }
        }

        private int number;

        public int Number
        {
            get { return number; }
            set { number = value; }
        }

        private String levelName;

        public String LevelName
        {
            get { return levelName; }
            set { levelName = value; }
        }

        private String unit;

        public String Unit
        {
            get { return unit; }
            set { unit = value; }
        }
  
        //剩余数
        private int oddNumber;

        public int OddNumber
        {
            get { return oddNumber; }
            set { oddNumber = value; }
        }
        //生效日期
        private String effectiveDate;

        public String EffectiveDate
        {
            get { return effectiveDate; }
            set { effectiveDate = value; }
        }

        public int GiftIndex { get => giftIndex; set => giftIndex = value; }
        [Ignore]
        private int giftIndex = -1;
    }
}
